"""
语法：
start   => 第一个元素
end     => 最后一个元素
num     => 张量的个数
torch.linspace(start,end,step)
"""
import torch as t

data = t.linspace(1, 10, 4)
print(data)  # 1,  x,  y,   10

data = t.linspace(1, 10, 3)
print(data)  # 1,  5.5,  10

data = t.linspace(1, 10, 6)
print(data)

data = t.linspace(1, 10, 7)
print(data)
